package example.entities.player 
{
	import example.globals.Assets;
	import net.flashpunk.Entity;
	import maskedpixel.ogmo.*;
	import maskedpixel.ogmo.utils.*;
	import net.flashpunk.Graphic;
	import net.flashpunk.graphics.Image;
	import net.flashpunk.Mask;
	
	/**
	 * ...
	 * @author MaskedPixel
	 */
	public class Ogmo extends Entity 
	{
		/**
		 * @inheritDoc
		 */
		public function Ogmo(x:Number=0, y:Number=0, graphic:Graphic=null, mask:Mask=null) 
		{
			super(x, y, graphic, mask);
			this.graphic = new Image(Assets.OGMO_GFX);
			this.layer = 0;
		}
		
		/**
		 * Used to register this class with the Ogmo Project.
		 */
		public static function register():void
		{
			var ogmo:OgmoObject = new OgmoObject("example.entities.player.Ogmo", "ogmo", "ogmo.png", 16, 16);
			ogmo.registerAttribute(new OgmoAttribute("limit", "1"));
			
			OgmoProject.registerObject(ogmo);
		}
		
	}

}